package com.qf.dao.impl;

import com.qf.dao.DaoMaps;
import com.qf.domain.Student;
import com.qf.utils.JDBCUtils2;
import org.springframework.jdbc.core.JdbcTemplate;

public class DaoMapsImpl implements DaoMaps {
     private JdbcTemplate  jd=new JdbcTemplate(JDBCUtils2.getDs());
    @Override
    public int tijiao(Student student) {
        String sql="update ya set username=?,password=? where id=?";
        Object[] params = {
                student.getUsername(),
              student.getPassword(),
                student.getId()
        } ;
        int update = jd.update(sql, params);
        return update;
    }
}
